const showPrompt = function (_this, {
	message,
	title,
	defaultValue
}, success, cancel) {
	_this.$prompt(message, title, {
			confirmButtonText: "确定",
			cancelButtonText: "取消",
			inputValue: defaultValue,
			center: true
		})
		.then(({
			value
		}) => {
			if (typeof success === "function") {
				success(value);
			}
		})
		.catch(error => {
			if (typeof cancel === "function") {
				cancel(error);
			}
		});
}
export {
	showPrompt
}
